//
//  MonkeyError.h
//  Phidgets
//
//  Created by Daniel Hazelbaker on 12/14/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#ifndef __MONKEYERROR_H__
#define __MONKEYERROR_H__

#include <string>
#include <js/jsapi.h>


class MonkeyError
{
private:
    unsigned int _lineNumber;
    std::string _filename;
    std::string _code;
    std::string _message;
    bool _isError;
    
public:
    MonkeyError(JSErrorReport *error, const char *message);
    
    unsigned int lineNumber() { return _lineNumber; }
    std::string filename() { return _filename; }
    std::string code() { return _code; }
    std::string message() { return _message; }
    bool isError() { return _isError; }
};

#endif /* __MONKEYERROR_H__ */

